/**   
 * @Title: ParamDataSearchAction.java 
 * CopyRight(c)2010-DMX 
 */
package com.dmx.fw.web.struts2.action.system;

import com.dmx.fw.bean.mapping.pojo.ParameterDescription;
import com.dmx.fw.service.interfaces.ParamDataService;
import com.dmx.fw.web.struts2.action.CommonQueryAction;


/** 
 * @Description: 某一数据字典项值查询Action
 * @author: yuzhixin
 * @date: 2010.3
 * @version V1.0 
 * 
 */
public class ParamDataSearchAction extends CommonQueryAction{
	
	/** 
	 * @Fields parmDesc：数据字典项
	 */
	private ParameterDescription parmDesc;
	
	/** 
	 * @Fields paramDataService：业务逻辑Service
	 */
	private ParamDataService paramDataService;

	public ParamDataService getParamDataService() {
		return paramDataService;
	}

	public void setParamDataService(ParamDataService paramDataService) {
		this.paramDataService = paramDataService;
	}

	public ParameterDescription getParmDesc() {
		return parmDesc;
	}

	public void setParmDesc(ParameterDescription parmDesc) {
		this.parmDesc = parmDesc;
	}
	private String q_typeCode;
	
	private String q_name;
	
	
	public String getQ_name() {
		return q_name;
	}

	public void setQ_name(String q_name) {
		this.q_name = q_name;
	}

	public String getQ_typeCode() {
		return q_typeCode;
	}

	public void setQ_typeCode(String code) {
		q_typeCode = code;
	}

	public String execute() throws Exception {
		
		String resultCode = super.execute();
		this.parmDesc = paramDataService.getParmDescByCode(q_typeCode);
		return resultCode;
	}
	
}
